#include "dll.h"
#include <windows.h>

DLL DLL_load(const char* filename)
{
  HINSTANCE dll;
  
  dll = LoadLibrary(filename);
  
  return (DLL)dll;
}

void DLL_free(DLL dll)
{
  FreeLibrary((HINSTANCE)dll);
}

void* DLL_loadFunc(DLL dll, const char* name)
{
  return (void*)GetProcAddress((HINSTANCE)dll, name);
}
